<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <li id="demo"></li>
</body>
<script>
    // arr的原型链:
    // arr => Array.prototype =>  Object.prototype -> null
    // var arr = [1, 2, 3, 4];
    // console.log(arr);
    // console.log(arr instanceof Array);
    // console.log(arr instanceof Object);

    // p的原型链:
    // p => Promise.prototype =>  Object.prototype -> null
    // var p = new Promise(function () { })
    // console.log(p);
    // console.log(p instanceof Promise);
    // console.log(p instanceof Object);


    // 判断是否是DOM元素
    // li -> HTMLLIElement -> HTMLElement -> Element -> Node -> EventTarget -> Object -> null
    // console.dir(demo);
    console.log(demo instanceof Element);
    console.log(demo instanceof Node);





</script>

</html>